//比较两个数最大值，进阶输入版
import java.util.Scanner;
public class demo1
{
  public static void main (String[] args){
        Scanner number = new Scanner(System.in);
        System.out.println("请输入第一个数");
        int a =number.nextInt();
        System.out.println("请输入第二个数");
        int b =number.nextInt();
        int max= MXONE(a,b);
        System.out.println("ff1："+max);
         int big= MXONE2(a,b);
        System.out.println("ff2："+big);
    }
  //方法1
    public static  int MXONE(int a1,int a2){
    if(a1>a2){
    return a1;
    }else{
    return a2;
    }
}
    public static  int MXONE2(int a1,int a2){
    int big=a1>a2?a1:a2;
    return big;
    
    
}
    
}
